package nc.vo.med.pub.sql;

import java.util.ArrayList;

public class SetCollection {
	private Object alExpressItems;

	public SetCollection() {
		super();
	}

	public java.lang.Object getExpressItems() {
		return alExpressItems;
	}

	public void setExpressItems(java.lang.Object newExpressItems) {
		alExpressItems = newExpressItems;
	}

	public String toString() {
		StringBuffer setString = new StringBuffer();
		setString.append(" set ");
		if (alExpressItems instanceof ArrayList) {
			for (int i = 0; i < ((ArrayList) alExpressItems).size(); i++) {
				ExpressItem expressItem = (ExpressItem) ((ArrayList) alExpressItems)
						.get(i);
				if (i == 0)
					setString.append(expressItem.toString());
				else
					setString.append("," + expressItem.toString());
			}
		} else if (alExpressItems instanceof String) {
			setString.append(alExpressItems.toString());
		}

		return setString.toString();
	}
}